package irsystem.model;

public class document {

    /* atribut-atribut yang dimiliki oleh kelas document */
        private int idDoc;
        private java.util.ArrayList < String > text;

    /* constructor */
        public document () {}
        public document (int idDoc, java.util.ArrayList < String > text) {
            this.idDoc = idDoc;
            this.text = text;
        }

    /* setter - getter */
        public void setID (int id) {
            this.idDoc = id;
        }
        public void setText (String[] text) {
            this.text.clear();
            this.text.addAll(java.util.Arrays.asList(text));
        }
        public void setText (java.util.ArrayList < String > text) {
            this.text.clear();
            this.text = text;
        }

        public int getID () {
            return (this.idDoc);
        }
        public java.util.ArrayList < String > getText () {
            return (this.text);
        }
}

